{% extends 'base.html' %}
{% load staticfiles %}
{% block content %}
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                用户管理
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 用户管理</a></li>
                <li class="active">修改密码</li>
            </ol>
        </section>
        <!-- Main content -->
        <section class="content">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">修改密码</h3>
                    <div class="box-tools pull-right">
                        <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    </div><!-- /.box-tools -->
                </div><!-- /.box-header -->
                <div class="box-body">
                    {% if status == 1 %}
                        <div class="alert alert-success alert-dismissible">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                            <h4><i class="icon fa fa-ban"></i> 成功</h4>
                            密码修改成功！
                        </div>
                    {% elif status_msg %}
                        <div class="alert alert-danger">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                            <h4><i class="icon fa fa-ban"></i> 错误</h4>
                            {{ status_msg }}
                        </div>
                    {% endif %}
                    <form  method="POST" class="form-horizontal">
                        {% csrf_token %}
                        <div class="form-group">
                            <label for="subtext" class="col-sm-5 control-label">用户原密码<span
                                    style="color: red;">*</span></label>
                            <div class="col-sm-3 ">
                                <input type="password" name="old_password" class="form-control"
                                       placeholder="录入原密码" required="" id="id_car_number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="subtext" class="col-sm-5 control-label">用户新密码<span style="color: red;">*</span></label>
                            <div class="col-sm-3">
                                <input type="password" name="new_password" class="form-control"
                                       placeholder="录入新密码" required="" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="subtext" class="col-sm-5 control-label">新密码确认<span style="color: red;">*</span></label>
                            <div class="col-sm-3">
                                <input type="password" name="confirm_password" class="form-control"
                                       placeholder="新密码确认" required="" >
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-offset-5 col-md-9">
                                <button type="submit" id="published" class="btn btn-primary"><i class="fa fa-save"></i>
                                    保存
                                </button>
                                <button type="reset" class="btn btn-primary "><i class="fa fa-undo"></i> 重置</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </div>
{% endblock %}